﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TMT_CMS.BL;
using TMT_CMS.BL.Model;
using TMC_CMS.Utility;

namespace TMC_CMS.Controllers
{
    public class BasicDataController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult ShowCountryList(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetCountryList(paggingModel);
            
            return View(result);
        }

        public ActionResult ShowProvinceList(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetProvinceList(paggingModel);
            return View(result);
        }

        public ActionResult ShowCityList(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetCityList(paggingModel);
            return View(result);
        }

        public ActionResult ShowLocationList(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetLocationList(paggingModel);
            return View(result);
        }

        public ActionResult ShowCurrencyType(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetCurrencyTypeList(paggingModel);
            return View(result);
        }

        public ActionResult ShowFeeTypeList(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetFeeTypeList(paggingModel);
            return View(result);
        }

        public ActionResult ShowServiceType(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetServiceTypeList(paggingModel);
            return View(result);
        }

        public ActionResult ShowBusinessType(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetBusinessTypeList(paggingModel);
            return View(result);
        }

        public ActionResult ShowUnitType(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetUnitTypeList(paggingModel);
            return View(result);
        }

        public ActionResult ShowTransportType(PaggingRequestModel paggingModel)
        {
            var result = BasicDataManager.GetTransportTypeList(paggingModel);
            return View(result);
        }

        #region Import
        public ActionResult ImportCountryList()
        {
            ViewBag.Title = "导入国家数据";
            ViewBag.Type = "Country";
            return View("Import");
        }

        public ActionResult ImportProvinceList()
        {
            return View("Import");
        }

        public ActionResult ImportCityList()
        {
            return View("Import");
        }

        public ActionResult ImportLocationList()
        {
            return View("Import");
        }

        public ActionResult ImportCurrencyType()
        {
            return View("Import");
        }

        public ActionResult ImportServiceType()
        {
            return View("Import");
        }

        public ActionResult ImportFeeTypeList()
        {
            return View("Import");
        }

        public ActionResult ImportBusinessType()
        {
            return View("Import");
        }

        public ActionResult ImportUnitType()
        {
            return View("Import");
        }

        public ActionResult ImportTransportType()
        {
            return View("Import");
        }

        public ActionResult Import()
        {
            return View("Import");
        }
        #endregion
    }
}
